package com.xunyin.dianping;

import com.xunyin.modules.mtdianpinggroup.domain.MtDianpingGroup;

import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface DianpingCouponService {

    void getToken(Integer storeId);

    DianpingPrepareResult prepare(Integer storeId, String receiptCode);

    DianpingPrepareResult scanPrepare(Integer storeId, String qrCode);

    DianpingResult consume(Integer userId, Integer storeId, String receiptCode, Integer count, String random);

    void syncGroupInfor(Integer storeId) throws IOException, NoSuchAlgorithmException;

    List<MtDianpingGroup> getDianpingGroupList(MtDianpingGroup mtDianpingGroup, List<Integer> storeIdList);

}
